<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ include file="../../base.jsp"%>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
</head>
<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
    <!-- 内容头部 -->
    <section class="content-header">
        <h1>
            货运管理
            <small>新增装箱单</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="all-order-manage-list.html">货运管理</a></li>
            <li class="active">货物添加及列表</li>
        </ol>
    </section>
    <!-- 内容头部 /-->

    <!-- 正文区域 -->
    <section class="content">

        <!--订单信息-->
        <div class="panel panel-default">
            <div class="panel-heading">装箱单信息</div>
            <%--

            --%>
            <form id="editForm" action="${ctx}/cargo/packing/edit.do" method="post"  >
                <input type="text" name="contractId" value="${contractId}">

                <div class="row data-type" style="margin: 0px">


                    <div class="col-md-2 title">买方</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="买方" name="buyer" value="${packing.buyer}">
                    </div>


                    <div class="col-md-2 title">卖方</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="买方" name="seller" value="${packing.seller}">
                    </div>


                    <div class="col-md-2 title">唛头</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="唛头" name="marks" value="${packing.marks}">
                    </div>

                    <div class="col-md-2 title">描述</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="描述" name="description" value="${packing.description}">
                    </div>

                </div>
                <!-- .box-body -->
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">报运单列表</h3>
                    </div>

                <div class="box-body">

                    <!-- 数据表格 -->
                    <div class="table-box">
                        <!--数据列表-->
                        <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
                            <thead>
                            <tr>
                                <td class="tableHeader"><input type="checkbox" name="selid" onclick="checkAll('id',this)"></td>
                                <td class="tableHeader">合同号</td>
                                <td class="tableHeader">信用证号</td>
                                <td class="tableHeader">收货人地址</td>
                                <td class="tableHeader">唛头</td>
                                <td class="tableHeader">装船港</td>
                                <td class="tableHeader">目的港</td>
                                <td class="tableHeader">运输方式</td>
                                <td class="tableHeader">价格条件</td>
                            </tr>
                            </thead>

                            <tbody class="tableBody" >
                            <c:forEach items="${page}" var="o">
                            <tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'" >
                                <td><input  type="checkbox" name="id" value="${o.id}"/></td>
                                <td>${o.customerContract}</td>
                                <td>${o.lcno}</td>
                                <td>${o.consignee}</td>
                                <td>${o.marks}</td>
                                <td>${o.shipmentPort}</td>
                                <td>${o.destinationPort}</td>
                                <td>${o.transportMode}</td>
                                <td>${o.priceCondition}</td>
                            </tr>
                            </c:forEach>
            </form>
            </tbody>
            </table>
            <!--数据列表/-->
            <!--工具栏/-->
        </div>
        <!-- 数据表格 /-->
</div>
<!-- /.box-body --
</form>
</div>
<!--订单信息/-->



    </section>
    <!-- 正文区域 /-->

    <section class="content">



            >
            <!--工具栏-->
            <div class="box-tools text-center">
                <button type="button" onclick='document.getElementById("editForm").submit()' class="btn bg-maroon">保存</button>
                <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
            </div>
            <!--工具栏/-->
            <!-- .box-footer


            -->

            <!-- /.box-footer-->
        </div>

    </section>

</div>
<!-- 内容区域 /-->
</body>

</html>